package com.grass.appointment.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.lifecycle.LifecycleOwner;
import androidx.viewpager.widget.ViewPager;
import com.androidx.p013lv.base.bean.UserInfo;
import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.appbar.CollapsingToolbarLayout;
import com.google.android.material.tabs.TabLayout;
import com.grass.appointment.C2693BR;
import com.grass.appointment.C2694R;
import com.grass.appointment.activity.UserInfoActivity;
import com.grass.appointment.generated.callback.OnClickListener;

public class ActivityUserInfoLayoutBindingImpl extends ActivityUserInfoLayoutBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback13;
    private final View.OnClickListener mCallback14;
    private final View.OnClickListener mCallback15;
    private long mDirtyFlags;
    private final CollapsingToolbarLayout mboundView1;
    private final AppCompatImageView mboundView2;
    private final ImageView mboundView3;
    private final ImageButton mboundView4;

    static {
        ViewDataBinding.IncludedLayouts includedLayouts = new ViewDataBinding.IncludedLayouts(10);
        sIncludes = includedLayouts;
        includedLayouts.setIncludes(1, new String[]{"appointment_user_details"}, new int[]{5}, new int[]{C2694R.C2699layout.appointment_user_details});
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(C2694R.C2697id.app_bar, 6);
        sViewsWithIds.put(C2694R.C2697id.tool_bar, 7);
        sViewsWithIds.put(C2694R.C2697id.tab_layout, 8);
        sViewsWithIds.put(C2694R.C2697id.view_pager, 9);
    }

    public ActivityUserInfoLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 10, sIncludes, sViewsWithIds));
    }

    private ActivityUserInfoLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 2, (AppBarLayout) objArr[6], (AppointmentUserDetailsBinding) objArr[5], (RelativeLayout) objArr[0], (TabLayout) objArr[8], (Toolbar) objArr[7], (ViewPager) objArr[9]);
        this.mDirtyFlags = -1;
        CollapsingToolbarLayout collapsingToolbarLayout = (CollapsingToolbarLayout) objArr[1];
        this.mboundView1 = collapsingToolbarLayout;
        collapsingToolbarLayout.setTag(null);
        AppCompatImageView appCompatImageView = (AppCompatImageView) objArr[2];
        this.mboundView2 = appCompatImageView;
        appCompatImageView.setTag(null);
        ImageView imageView = (ImageView) objArr[3];
        this.mboundView3 = imageView;
        imageView.setTag(null);
        ImageButton imageButton = (ImageButton) objArr[4];
        this.mboundView4 = imageButton;
        imageButton.setTag(null);
        this.rootView.setTag(null);
        setRootTag(view);
        this.mCallback15 = new OnClickListener(this, 3);
        this.mCallback13 = new OnClickListener(this, 1);
        this.mCallback14 = new OnClickListener(this, 2);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 256;
        }
        this.include.invalidateAll();
        requestRebind();
    }

    /* JADX WARNING: Code restructure failed: missing block: B:10:0x0016, code lost:
        return false;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:8:0x0013, code lost:
        if (r6.include.hasPendingBindings() == false) goto L_0x0016;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:9:0x0015, code lost:
        return true;
     */
    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C2693BR.status == i) {
            setStatus((Integer) obj);
        } else if (C2693BR.userInfo == i) {
            setUserInfo((UserInfo) obj);
        } else if (C2693BR.fameStatus == i) {
            setFameStatus((Integer) obj);
        } else if (C2693BR.click == i) {
            setClick((UserInfoActivity.OnClick) obj);
        } else if (C2693BR.isSelf != i) {
            return false;
        } else {
            setIsSelf((Boolean) obj);
        }
        return true;
    }

    @Override // com.grass.appointment.databinding.ActivityUserInfoLayoutBinding
    public void setStatus(Integer num) {
        this.mStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(C2693BR.status);
        super.requestRebind();
    }

    @Override // com.grass.appointment.databinding.ActivityUserInfoLayoutBinding
    public void setUserInfo(UserInfo userInfo) {
        updateRegistration(1, userInfo);
        this.mUserInfo = userInfo;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C2693BR.userInfo);
        super.requestRebind();
    }

    @Override // com.grass.appointment.databinding.ActivityUserInfoLayoutBinding
    public void setFameStatus(Integer num) {
        this.mFameStatus = num;
    }

    @Override // com.grass.appointment.databinding.ActivityUserInfoLayoutBinding
    public void setClick(UserInfoActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 16;
        }
        notifyPropertyChanged(C2693BR.click);
        super.requestRebind();
    }

    @Override // com.grass.appointment.databinding.ActivityUserInfoLayoutBinding
    public void setIsSelf(Boolean bool) {
        this.mIsSelf = bool;
        synchronized (this) {
            this.mDirtyFlags |= 32;
        }
        notifyPropertyChanged(C2693BR.isSelf);
        super.requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void setLifecycleOwner(LifecycleOwner lifecycleOwner) {
        super.setLifecycleOwner(lifecycleOwner);
        this.include.setLifecycleOwner(lifecycleOwner);
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        if (i == 0) {
            return onChangeInclude((AppointmentUserDetailsBinding) obj, i2);
        }
        if (i != 1) {
            return false;
        }
        return onChangeUserInfo((UserInfo) obj, i2);
    }

    private boolean onChangeInclude(AppointmentUserDetailsBinding appointmentUserDetailsBinding, int i) {
        if (i != C2693BR._all) {
            return false;
        }
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        return true;
    }

    private boolean onChangeUserInfo(UserInfo userInfo, int i) {
        if (i == C2693BR._all) {
            synchronized (this) {
                this.mDirtyFlags |= 2;
            }
            return true;
        } else if (i == C2693BR.official) {
            synchronized (this) {
                this.mDirtyFlags |= 64;
            }
            return true;
        } else if (i != C2693BR.meetCard) {
            return false;
        } else {
            synchronized (this) {
                this.mDirtyFlags |= 128;
            }
            return true;
        }
    }

    /* access modifiers changed from: protected */
    /* JADX WARNING: Removed duplicated region for block: B:21:0x0044  */
    /* JADX WARNING: Removed duplicated region for block: B:26:0x0055  */
    /* JADX WARNING: Removed duplicated region for block: B:29:0x005f  */
    /* JADX WARNING: Removed duplicated region for block: B:37:0x0075  */
    /* JADX WARNING: Removed duplicated region for block: B:40:0x007d  */
    /* JADX WARNING: Removed duplicated region for block: B:54:0x009e  */
    /* JADX WARNING: Removed duplicated region for block: B:56:0x00a4  */
    /* JADX WARNING: Removed duplicated region for block: B:59:0x00aa  */
    /* JADX WARNING: Removed duplicated region for block: B:64:0x00b6  */
    /* JADX WARNING: Removed duplicated region for block: B:67:0x00c2  */
    /* JADX WARNING: Removed duplicated region for block: B:70:0x00ce  */
    /* JADX WARNING: Removed duplicated region for block: B:73:0x00da  */
    /* JADX WARNING: Removed duplicated region for block: B:76:0x00f3  */
    /* JADX WARNING: Removed duplicated region for block: B:79:0x00fd  */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        int i;
        long j2;
        boolean z;
        long j3;
        boolean z2;
        long j4;
        int i2;
        long j5;
        boolean z3;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        Integer num = this.mStatus;
        UserInfo userInfo = this.mUserInfo;
        UserInfoActivity.OnClick onClick = this.mClick;
        Boolean bool = this.mIsSelf;
        long j6 = j & 260;
        int i3 = 8;
        int i4 = 0;
        if (j6 != 0) {
            boolean z4 = true;
            if (ViewDataBinding.safeUnbox(num) != 1) {
                z4 = false;
            }
            if (j6 != 0) {
                j |= z4 ? 65536 : 32768;
            }
            if (!z4) {
                i = 8;
                j2 = j & 482;
                if (j2 == 0) {
                    z = ViewDataBinding.safeUnbox(bool);
                    if (j2 != 0) {
                        j = z ? j | 1024 : j | 512;
                    }
                } else {
                    z = false;
                }
                j3 = j & 512;
                if (j3 == 0) {
                    if (userInfo != null) {
                        z2 = userInfo.isOfficial();
                    } else {
                        z2 = false;
                    }
                    if (j3 != 0) {
                        j = z2 ? j | 4096 : j | 2048;
                    }
                } else {
                    z2 = false;
                }
                j4 = j & 4096;
                if (j4 != 0) {
                    if (userInfo != null) {
                        z3 = userInfo.isMeetCard();
                    } else {
                        z3 = false;
                    }
                    if (j4 != 0) {
                        j |= z3 ? 16384 : 8192;
                    }
                    if (z3) {
                        i2 = 8;
                        if ((j & 512) == 0) {
                            i2 = 0;
                        } else if (!z2) {
                            i2 = 8;
                        }
                        j5 = 482 & j;
                        if (j5 != 0) {
                            if (!z) {
                                i3 = i2;
                            }
                            i4 = i3;
                        }
                        if ((272 & j) != 0) {
                            this.include.setClick(onClick);
                        }
                        if ((288 & j) != 0) {
                            this.include.setIsSelf(bool);
                        }
                        if ((258 & j) != 0) {
                            this.include.setUserInfo(userInfo);
                        }
                        if ((256 & j) != 0) {
                            this.mboundView2.setOnClickListener(this.mCallback13);
                            this.mboundView3.setOnClickListener(this.mCallback14);
                            this.mboundView4.setOnClickListener(this.mCallback15);
                        }
                        if (j5 != 0) {
                            this.mboundView3.setVisibility(i4);
                        }
                        if ((j & 260) != 0) {
                            this.mboundView4.setVisibility(i);
                        }
                        executeBindingsOn(this.include);
                    }
                }
                i2 = 0;
                if ((j & 512) == 0) {
                }
                j5 = 482 & j;
                if (j5 != 0) {
                }
                if ((272 & j) != 0) {
                }
                if ((288 & j) != 0) {
                }
                if ((258 & j) != 0) {
                }
                if ((256 & j) != 0) {
                }
                if (j5 != 0) {
                }
                if ((j & 260) != 0) {
                }
                executeBindingsOn(this.include);
            }
        }
        i = 0;
        j2 = j & 482;
        if (j2 == 0) {
        }
        j3 = j & 512;
        if (j3 == 0) {
        }
        j4 = j & 4096;
        if (j4 != 0) {
        }
        i2 = 0;
        if ((j & 512) == 0) {
        }
        j5 = 482 & j;
        if (j5 != 0) {
        }
        if ((272 & j) != 0) {
        }
        if ((288 & j) != 0) {
        }
        if ((258 & j) != 0) {
        }
        if ((256 & j) != 0) {
        }
        if (j5 != 0) {
        }
        if ((j & 260) != 0) {
        }
        executeBindingsOn(this.include);
    }

    @Override // com.grass.appointment.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = false;
        if (i == 1) {
            UserInfoActivity.OnClick onClick = this.mClick;
            if (onClick != null) {
                z = true;
            }
            if (z) {
                onClick.btnBack();
            }
        } else if (i == 2) {
            UserInfoActivity.OnClick onClick2 = this.mClick;
            if (onClick2 != null) {
                z = true;
            }
            if (z) {
                onClick2.btnUnlockNow();
            }
        } else if (i == 3) {
            UserInfoActivity.OnClick onClick3 = this.mClick;
            if (onClick3 != null) {
                z = true;
            }
            if (z) {
                onClick3.goSendDynamic();
            }
        }
    }
}
